Make sure that the say command, sprites, and background are all inside the if statement.

  • Add another if to test if result is equal to d_num.
  • Use Say and the result message in Ticket to have the sprite say the result message for knight.
  • Drag in one of the Knight sprites and name it result_sprite . Change its coordinates to (0, -100).
  • Drag Drawbridge inside the if statement. Click Run and enter mostly "d" to see the knight!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)